<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<link  href="$!webPath/resources/style/common/css/jquery-ui-1.8.22.custom.css" type=text/css rel=stylesheet>
<link href="$!webPath/resources/style/system/manage/$!{config.websiteCss}/template.css"  rel="stylesheet" type="text/css"/>
<script src="$!webPath/resources/js/jquery-1.8.3.min.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script src="$!webPath/resources/js/jquery.poshytip.min.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.zh.cn.js"></script>
<script>
jQuery(document).ready(function(){
	  jQuery('#beginTime').datepicker({
		  dateFormat:"yy-mm-dd",
		  changeMonth: true,
		  changeYear: true
	  });
	  jQuery('#endTime').datepicker({
		  dateFormat:"yy-mm-dd",
		  changeMonth: true,
		  changeYear: true
	  });
	  //
	});
	
function addorsubtract(obj,id){
 var cls=jQuery(obj).attr("cls");
 var level=jQuery(obj).attr("level");
  if(cls=="jian"){
  jQuery.ajax({type:'POST',
		       url:'$!webPath/admin/goods_class_data.htm',
		        data:{"pid":id,"currentPage":"$!currentPage"},
				success:function(data){
	                jQuery("#"+id).after(data);
					jQuery(obj).attr("src","$!webPath/resources/style/system/manage/blue/images/add.jpg");
					jQuery(obj).attr("cls","add");
					tipStyle();
              }
  });
  }else{
       if(level=="0_"+id){
	    jQuery("tr[level=child_"+id+"]").remove();
	   }else
	   jQuery("tr[parent="+id+"]").remove();
	   jQuery(obj).attr("src","$!webPath/resources/style/system/manage/blue/images/jian.jpg");
	   jQuery(obj).attr("cls","jian");
  }
  //
}
function ajax_update(id,fieldName,obj){
   var val=jQuery(obj).val();
    jQuery.ajax({type:'POST',
	              url:'$!webPath/admin/goods_class_ajax.htm',
				  data:{"id":id,"fieldName":fieldName,"value":val},
				beforeSend:function(){
				  
				},
			   success:function(data){
	             if(val==""){
				   jQuery(obj).attr("src","$!webPath/resources/style/system/manage/blue/images/"+data+".png");
				 }else{
				   jQuery(obj).val(val);
				 }      
              }
	    });
}
jQuery(document).ready(function(){
 
});
</script>
<body>
<div class="cont">
  <h1 class="seth1">客户管理</h1>
    <form action="" method="post" id="queryForm" >
  <div class="orders">
    <ul>
      <li> <span>状态</span><span class="ordersel">
        <select name="order_status" id="order_status">
          <option value="">所有状态</option>
          <option value="10">待付款</option>
         <option value="50">已完成</option>
          <option value="0">已取消</option>
        </select>
      </span><span>类型</span><span>
        <select name="type" id="type">
          <option value="store">企业名称</option>
          <option value="buyer">买家名称</option>
          <option value="order">企业编码</option>
        </select>
        </span> <span class="order_input size1">
        <input name="type_data" type="text" id="type_data" />
      </span> <span>渠道</span><span>
        <select name="payment" id="payment">
          <option value="">所有渠道</option>

        </select>
        </span></li>
      <li> <span>申请时间</span>
      <span class="order_input size2">
        <input name="beginTime" type="text" id="beginTime"  readonly="readonly"/>
        </span><span>—</span><span class="order_input size2">
        <input name="endTime" type="text" id="endTime" readonly="readonly" />
        </span> 
        <span class="btn_search">
        <input name="" type="submit"  value="搜索" style="cursor:pointer;"/>
      </span> </li>
    </ul>
  </div>
  </form>
<!--    <div class="settab"><span class="tab-one"></span> <span class="tabs"> <a href="$!webPath/admin/crm_t_list.htm"  class="this">认证审核</a> | <a href="$!webPath/admin/goods1_class_add.htm">激活审核</a>  | <a href="$!webPath/admin/goods1_class_add.htm">客户管理员调整审核</a>  | <a href="$!webPath/admin/goods1_class_add.htm">未通过</a>  | <a href="$!webPath/admin/goods1_class_add.htm">新增</a></span> <span class="tab-two"></span></div> 
 -->  
  <div class="classtable">
  <FORM name="ListForm" id="ListForm"  action="$!webPath/admin/goods_class_list.htm" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="class_table">
      <tr style="background: #if($!config.websiteCss=='blue') #2A7AD2 #end 
      #if($!config.websiteCss=='black')#333 #end; height:30px; color:#FFF">
        <td width="38">&nbsp;</td>
        <td  width="140"  align="center">企业名称</td>
        <td width="70"  align="center">联系电话</td>
        <td width="50" align="center">联系人</td>
        <td width="99" align="center">地域</td>
        <td width="99" align="center">申请时间</td>
        <td width="99" align="center">平台类型</td>
        <td width="99" align="center">经营范围</td>
        <td width="55" align="center">等级</td>
        <td width="100" align="center">操作</td>
      </tr>
    
          #foreach($obj in $objs)
      <tr id="$!obj.id">
      
       
	    <td align="center"><input name="ids" id="ids" type="checkbox" value="$!obj.id" /></td>
	     <td   align="center">$!obj.consumer.ent_name</td>
       
        <td align="center">$!obj.telephone</td>
         <td align="center">$!obj.truename</td>
          <td align="center">$!obj.address</td>
           <td align="center">$!obj.consumer.addTime</td>
            <td align="center">$!obj.consumer.platform_type</td>
            <td align="center">$!obj.consumer.main_business</td>
            <td align="center">$!obj.consumer.grade</td>
  
        <td align="left" class="ac8"><a href="$!webPath/admin/crm_t_edit.htm?id=$!obj.id&currentPage=$!currentPage">编辑</a>|<a href="javascript:void(0);" onclick="if(confirm('删除分类会同时删除该分类的所有下级，是否继续?'))window.location.href='$!webPath/admin/crm_t_del.htm?id=$!obj.id&currentPage=$!currentPage'">删除</a></td>
      </tr>
      #end  
      <tr style="background:#F2F2F2; height:30px;">
		<td align="center"><input type="checkbox" name="all" id="all" value="" onclick="selectAll(this)"/></td>
        <td colspan="2" align="center" class="sall"><span class="classall">全部</span><span class="shop_btn_del" id="alldel">
          <input name="input" type="button" value="删除" style="cursor:pointer;" onclick="cmd('$!webPath/admin/goods_class_del.htm')"/>
          </span><span class="shop_btn_del" id="alldel">
            <input name="input" type="button" value="推荐" style="cursor:pointer;" onclick="cmd('$!webPath/admin/goods_class_recommend.htm')"/>
          </span></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>   
    </table>
      
	  <input type="hidden" name="currentPage" id="currentPage" value="$!currentPage" />
	  <input name="mulitId" type="hidden" id="mulitId" />
	  <div class="fenye"> $!gotoPageHTML</div>	 
   </FORM>
  </div>  
</div>
</body>
</html>
